<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('菜房出库列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li class="select-time">
								<label>日期： </label>
								<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]" lay-key="1">
								<span>-</span>
								<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]" lay-key="2">
							</li>

							<!--<li>
								车牌号：<input type="text" name="carNum"/>
							</li>

							<li>
								框数：<input type="text" name="boxAmount"/>
							</li>

							<li>
								出场时间：<input type="text" name="outTime"/>
							</li>

							<li>
								到供应科时间：<input type="text" name="gykTime"/>
							</li>

							<li>
								回场时间：<input type="text" name="backTime"/>
							</li>

							<li>
								到场时间：<input type="text" name="reachTime"/>
							</li>
-->
							<li>
								经手人：<input type="text" name="transUser"/>
							</li>

							<!--<li>
								创建者：<input type="text" name="createBy"/>
							</li>

							<li>
								：<input type="text" name="createTime"/>
							</li>

							<li>
								备注：<input type="text" name="remark"/>
							</li>

							<li>
								质检员确认签字：<input type="text" name="inspectionSign"/>
							</li>

							<li>
								司机出场确认签字：<input type="text" name="driverOutSign"/>
							</li>

							<li>
								协送员出场确认签字：<input type="text" name="helpingOutSign"/>
							</li>

							<li>
								协送员回厂确认签字：<input type="text" name="helpingBackSign"/>
							</li>

							<li>
								司机回厂确认签字：<input type="text" name="driverBackSign"/>
							</li>
-->
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm" id="toolbar" role="group">

				<!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:ncTransportInfo:export">
						<i class="fa fa-download"></i> 导出
				 </a>-->
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:ncTransportInfo:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:ncTransportInfo:remove')}]];
        var prefix = ctx + "system/ncTransportInfo";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "菜房出库",
                showExport: false,
                showSearch: false,
                showRefresh: false,
                showColumns: false,
                showToggle: false,
                columns: [
				{
					field : 'transId', 
					title : '运输id',
					visible: false
				},
                    {
                        title: '序号',
                        formatter: function (value, row, index) {
                            return $.table.serialNumber(index);
                        }
                    },
				{
					field : 'transDate', 
					title : '日期',
					sortable: true,
				 formatter: function(value, row, index) {
                 return dateFtt(value)
             }
				},
				{
					field : 'carNum', 
					title : '车牌号',
					sortable: true
				},
				{
					field : 'boxAmount', 
					title : '蔬菜数量(框)',
					sortable: true
				},
				{
					field : 'outTime', 
					title : '出场时间',
					sortable: true,
                    formatter: function(value, row, index) {
                        return dateFtt(value,'yyyy-MM-dd hh:mm')
                    }
				},
					{
                        field : 'inspectionSign',
                        title : '质检员确认签字',
                        sortable: true
                    },
                    {
                        field : 'driverOutSign',
                        title : '司机出场确认签字',
                        sortable: true
                    },
                    {
                        field : 'helpingOutSign',
                        title : '协送员出场确认签字',
                        sortable: true
                    },
				{
					field : 'gykTime', 
					title : '到供应科时间',
					sortable: true,
                    formatter: function(value, row, index) {
                        return dateFtt(value,'yyyy-MM-dd hh:mm')
                    }

				},
				{
					field : 'backTime', 
					title : '回场时间',
					sortable: true,
                    formatter: function(value, row, index) {
                        return dateFtt(value,'yyyy-MM-dd hh:mm')
                    }
				},
				{
					field : 'reachTime', 
					title : '到场时间',
					sortable: true,
                    formatter: function(value, row, index) {
                        return dateFtt(value,'yyyy-MM-dd hh:mm')
                    }

				},

                    {
                        field : 'helpingBackSign',
                        title : '协送员回厂确认签字',
                        sortable: true
                    },
                    {
                        field : 'driverBackSign',
                        title : '司机回厂确认签字',
                        sortable: true
                    },
				{
					field : 'transUser', 
					title : '经手人',
					sortable: true
				},

				{
					field : 'remark', 
					title : '备注',
					sortable: true
				}]
            };
            $.table.init(options);
        });
        setTitle("运送登记",false)
    </script>
</body>
</html>